# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-cmd2
_pkgname=cmd2
pkgver=0.8.9
pkgrel=2
pkgdesc='A tool for building interactive command line applications in Python.'
url='https://pypi.org/project/cmd2/#files'
arch=('any')
license=('MIT')
depends=('python2' 'python2-wcwidth' 'python2-pyperclip' 'python2-six'
         'python2-pyparsing' 'python2-enum34' 'python2-subprocess32')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('80c80b67f8a1709156450fa476215a5466cca2853102f6012f1d83867a311d86a68d441dcea9895b62add731b3d00a7c3ecefde939b4f2ccd61d058ef9386a84')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

